package edu.sctu.practice.class01.zhangwang.assigns.assign03.question_01;

/**
 * Created by Z_W on 2015/10/22.
 */
public class Client {
    public static boolean equalArea(GeometricObject object1, GeometricObject object2) {
        boolean isSame = false;

        if (object1.fingArea() > object2.fingArea()) {
            isSame = true;
            System.out.println("前一个面积大于后一个");
            return isSame;
        } else {
            System.out.println("前一个面积小于后一个");
            return true;
        }
    }

    public static void displayGeometricObject(GeometricObject object) {
        System.out.println("颜色" + object.color + "面积" + object.fingArea() + "周长" + object.findPerimeter());
    }
}
